What is the Evangelist?
Evangelist is a JavaScript library which allows you to override or wrap any function with another one.
Example Usage
import evangelist from 'evangelist';
let fnc = () => 5;
fnc = evangelist.wrap(fnc, (next) => next() * 2);
fnc = evangelist.wrap(fnc, (next) => next() + 1);
console.log(`fnc: ${fnc()}`);
const lower = x => x.toLowerCase();
const chars = x => x.replace(/[^\w \-]+/g, '');
const spaces = x => x.split(' ');
const dashes = x => x.join('-');
const slug = evangelist.pipe(lower, chars, spaces, dashes);
const message = slug('Hello World!');
console.log(`slug: ${message}`);
Quick start
Execute npm install evangelist --save
to install evangelist and its dependencies into your project directory.
Todo List
See GitHub Projects for more.
Requirements
License
Apache 2.0, for further details, please see LICENSE file
Contributing
See contributors.md
It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.
- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub Issues.
To Support
Visit my patreon profile at patreon.com/eserozvataf